/**
 * @func 
 * @desc reduce实现数组的累加
 * @param {Array}  
 * @return {} 
 */
 let arr = [1,2,3,4,5]
function accumulation(arr) {
    return arr.reduce((x, y) => x + y, 0)
}
console.log(accumulation(arr));
